<?php
namespace Admin\Model;

use Think\Model;

class StockModel extends Model
{
    protected $tableName = 'stock';

    protected $_validate = [
        ['goods_name', '', '库存名已经存在相同请勿重复添加', 0, 'unique', 1], //1代表添时校验
    ];

    protected $_auto = [
    ];
}